<?php
$category = '';
$category[0][0] = 'home';
$category[0][1] = 'index.php?page=home';
$category[1][0] = 'settings';
$category[1][1] = 'index.php?page=settings';
$category[2][0] = 'modules';
$category[2][1] = 'index.php?page=modules';
$category[3][0] = 'ads';
$category[3][1] = 'index.php?page=ads';
$category[4][0] = 'themes';
$category[4][1] = 'index.php?page=themes';
$category[5][0] = 'users';
$category[5][1] = 'index.php?page=users';
$category[6][0] = 'subtitles';
$category[6][1] = 'index.php?page=subtitles';
$category[7][0] = 'videos';
$category[7][1] = 'index.php?page=videos';

echo "		
			<form>
				<div id='radio'>
";
			
for ($i = 0; $i <= count($category)-1; $i++) {
if(!empty($page) and $page==$category[$i][0]) {$selected = "checked='checked'";} else {$selected = "";}
    echo "
	<input type='radio' id='".$category[$i][0]."' value='".$category[$i][0]."' name='page' ".$selected." onclick='this.form.submit();'/><label for='".$category[$i][0]."'>".$category[$i][0]."</label>
	";
}

echo"	
				</div>
			</form>
";
				


?>